int fork(void) {
    pid_t pid;
    int x = 1;

    pid = Fork();
    if (pid == 0) {
        printf("Child: x=%d\n", ++x);
        exit(0);
    }

    printf("parent: x=%d\n", --x);
    exit(0);
}